(function($){
	var BtAdmin = {
		'options' : {
			'link' : '.op-select',
			'output' : '.out-select',
			'care' : '.relate-select',
			'dialog' : '#dialog-'
		},
		
		bind : function(){
			var self = this,
				type = '',
				links = $(self.options.link),
				dialog_pre = self.options.dialog;
			
			links.bind('click', function(){
				type = $(this).attr('data-type');
				$(dialog_pre + type).dialog('open');
			});
		},
		
		init : function(){
			this.bind();
		}
	};
	
	BtAdmin.init();
	$.BtAdmin = BtAdmin;
})(jQuery);